Beginning Android Games by Mario Zechner J. F. DiMarzio & Robert Green

Beginning Android Games by Mario Zechner J. F. DiMarzio & Robert Green

Author:Mario Zechner, J. F. DiMarzio & Robert Green
Language: eng
Format: epub
Publisher: Apress, Berkeley, CA


public BlendingScreen(Game game) {

super(game);

glGraphics = ((GLGame)game).getGLGraphics();

textureRgb = new Texture((GLGame)game, "bobrgb888.png");

textureRgba = new Texture((GLGame)game, "bobargb8888.png");

vertices = new Vertices(glGraphics, 8, 12, true, true);

float[] rects = new float[] {

100, 100, 1, 1, 1, 0.5f, 0, 1,

228, 100, 1, 1, 1, 0.5f, 1, 1,

228, 228, 1, 1, 1, 0.5f, 1, 0,

100, 228, 1, 1, 1, 0.5f, 0, 0,

100, 300, 1, 1, 1, 1, 0, 1,

228, 300, 1, 1, 1, 1, 1, 1,

228, 428, 1, 1, 1, 1, 1, 0,

100, 428, 1, 1, 1, 1, 0, 0

};

vertices.setVertices(rects, 0, rects.length);

vertices.setIndices(new short[] {0, 1, 2, 2, 3, 0,

4, 5, 6, 6, 7, 4 }, 0, 12);

}



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.